﻿namespace GdNet.WebFramework.Domain.System
{
    public partial class Module
    {
        public static ModuleFactory Factory
        {
            get { return new ModuleFactory(); }
        }

        public class ModuleFactory
        {
            public Module Create(string code, string name, string assemblyName)
            {
                return Create(code, name, assemblyName, "1.0.0.0");
            }

            public Module Create(string code, string name, string assemblyName, string version)
            {
                return new Module()
                {
                    Code = code,
                    Name = name,
                    AssemblyName = assemblyName,
                    Version = version,
                };
            }
        }
    }
}
